# -*- coding: utf-8 -*-

from django.urls import path, re_path
from projs import views

urlpatterns = [
    path(r'find_product_name/', views.find_product_name, name='find_product_name'),
    path(r'get_project_product/', views.get_project_product, name='get_project_product'),
    path(r'getinventoryinfo/', views.get_inventory_info, name='getinventoryinfo'),
    path(r'getchangeinfo/', views.get_change_info, name='getchangeinfo'),
    path(r'inventorylist/', views.get_inventory_list, name='inventorylist'),
    path(r'getinventoryform/', views.get_inventory_form, name='getinventoryform'),
    path(r'deleteinventoryinfo/', views.delete_inventory_info, name='deleteinventoryinfo'),
    path(r'getchangeform/', views.get_appchange_form, name='getchangeform'),
    path(r'deletechangeinfo/', views.delete_change_info, name='deletechangeinfo'),
    path(r'getinventorystatistic/', views.get_inventory_statistic, name='getinventorystatistic'),
    path(r'inventorystatisticinfo/', views.inventory_statistic_info, name='inventorystatisticinfo'),
    path(r'getrecentinventory/', views.get_recent_inventory, name='getrecentinventory'),
    path(r'downloadchangeinfo/', views.download_change_info, name='downloadchangeinfo'),
    path(r'downloadinventoryinfo/', views.download_inventory_info, name='downloadinventoryinfo'),

    path(r'proj_list/', views.proj_list, name='proj_list'),
    path(r'proj_config/', views.proj_config, name='proj_config'),
    path(r'config_list/', views.config_list, name='config_list'),
    path(r'deploy_log/', views.deploy_log, name='deploy_log'),
    re_path(r'check_log/(?P<pk>[0-9]+)/', views.check_log, name='check_log'),
    re_path(r'deploy/(?P<pk>[0-9]+)/', views.deploy, name='deploy'),
    re_path(r'rollback/(?P<pk>[0-9]+)/', views.deploy, name='rollback'),
    re_path(r'proj_list/(?P<pk>[0-9]+)/', views.proj_org, name='proj_org'),
    re_path(r'org_chart/(?P<pk>[0-9]+)/', views.org_chart, name='org_chart'),
]
